package com.fxpc.hddc.fxpicture.dto.primary.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @Description: fxpc-schedule
 * @Author: lhl
 * @CreateDate: 2021/3/26 10:01
 */
@Entity
@Table(name = "fx_picture", schema = "base", catalog = "")
public class FxPictureEntity {
    private String id;
    private String pictureName;
    private String pictureDescription;
    private String attchName;
    private String attachId;
    private String isValid;
    private String createUser;
    private Date createTime;
    private String updateUser;
    private Date updateTime;
    private String partitionFlag;
    private String objectCode;
    private String province;
    private String city;
    private String area;
    private String type;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "picture_name")
    public String getPictureName() {
        return pictureName;
    }

    public void setPictureName(String pictureName) {
        this.pictureName = pictureName;
    }

    @Basic
    @Column(name = "picture_description")
    public String getPictureDescription() {
        return pictureDescription;
    }

    public void setPictureDescription(String pictureDescription) {
        this.pictureDescription = pictureDescription;
    }

    @Basic
    @Column(name = "attch_name")
    public String getAttchName() {
        return attchName;
    }

    public void setAttchName(String attchName) {
        this.attchName = attchName;
    }

    @Basic
    @Column(name = "attach_id")
    public String getAttachId() {
        return attachId;
    }

    public void setAttachId(String attachId) {
        this.attachId = attachId;
    }

    @Basic
    @Column(name = "is_valid")
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "partition_flag")
    public String getPartitionFlag() {
        return partitionFlag;
    }

    public void setPartitionFlag(String partitionFlag) {
        this.partitionFlag = partitionFlag;
    }

    @Basic
    @Column(name = "object_code")
    public String getObjectCode() {
        return objectCode;
    }

    public void setObjectCode(String objectCode) {
        this.objectCode = objectCode;
    }

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Basic
    @Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FxPictureEntity that = (FxPictureEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(pictureName, that.pictureName) &&
                Objects.equals(pictureDescription, that.pictureDescription) &&
                Objects.equals(attchName, that.attchName) &&
                Objects.equals(attachId, that.attachId) &&
                Objects.equals(isValid, that.isValid) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(partitionFlag, that.partitionFlag) &&
                Objects.equals(objectCode, that.objectCode) &&
                Objects.equals(province, that.province) &&
                Objects.equals(city, that.city) &&
                Objects.equals(area, that.area) &&
                Objects.equals(type, that.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, pictureName, pictureDescription, attchName, attachId, isValid, createUser, createTime, updateUser, updateTime, partitionFlag, objectCode, province, city, area, type);
    }
}
